-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
domain, store/tikv: enable etcd client auto sync #9575
Conversation
Signed-off-by: disksing <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9575 +/- ##
==========================================
- Coverage 67.3% 67.29% -0.01%
==========================================
Files 376 376
Lines 78961 78963 +2
==========================================
- Hits 53144 53139 -5
- Misses 21058 21061 +3
- Partials 4759 4763 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: disksing [email protected]
What problem does this PR solve?
When all PD nodes are replaced by new PD nodes, etcd clients (used by DDL worker and safepoint syncer) in tidb will lost connection with PD cluster.
What is changed and how it works?
Enable etcd's
AutoSync
feature so it will automatically update member list.Check List
Tests
member delete
original 3 PDs.master
, FALSE forauto-sync
)master
, TRUE forauto-sync
)Note: No unit test case included, it will be more suitable to add a integration test in schrodinger later. This bug is kind urgent and the fix is straightforward so I guess we can merge it ahead.
Related changes